package org.jetnuke.dao;

import java.util.Calendar;
import java.util.List;
import java.util.Set;

import org.jetnuke.entities.BlogPost;

public interface BlogPostDAO {
	BlogPost retrieveByPK(int id)throws Exception;
	void update(BlogPost bp) throws Exception;
	int addNew(BlogPost bp)throws Exception;
	List retrieveByUser(int aid)throws Exception;
	List retrieveByUserOrdered(int aid) throws Exception;
	List retrieveByUserCat(int aid,int cat_id)throws Exception;
	List retrieveLast(int limit)throws Exception;
	List retrievePublishByUser(int id)throws Exception;
	List retrievePublishByUserCat(int id, int cat)throws Exception;
	List retrievePublishByUser(int id, int maxnumberpost)throws Exception;
	List retrieveDraftByUser(int id)throws Exception;
	List retrievePrivateByUser(int id)throws Exception;
	void changeCategory(int id, int id2)throws Exception;
	Set getPostDays(int aid, int month,int year)throws Exception;
	List retrievePublishByUser(int id, Calendar cal, int limit)throws Exception;
}
